* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-image: url('./bg.jpg');
  background-size: cover;
}

.container {
  width: 100%;
  max-width: 758px;
  height: 420px;
  position: relative;
  margin: auto;
}


.formbox {
  height: 100%;
  position: absolute;
  top: 0;
  transition: all 0.6s ease-in-out;
}
.login {
  left: 0;
  width: 50%;
  z-index: 2;
}
.register {
  left: 0;
  opacity: 0;
  width: 50%;
  z-index: 1;
}

.form {
  background-color: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 3rem;
  height: 100%;
  text-align: center;
}
.input {
  background-color: #fff;
  border: none;
  padding: 0.9rem 0.9rem;
  margin: 0.5rem 0;
  width: 100%;
}
.title {
  font-weight: 300;
  margin: 0;
  margin-bottom: 1.25rem;
}
.link {
  color: #333;
  font-size: 16px;
  margin: 1.5rem 0;
  text-decoration: none;
}


.btn {
  background-color: #095c91;
  background-image: linear-gradient(90deg, #095c91 0%, #0393a3 74%);
  border-radius: 5px;
  border: none;
  color: #e9e9e9;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  padding: 0.9rem 4rem;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
}

.form>.btn {
  margin-top: 1.5rem;
}

.btn:active {
  transform: scale(0.95);
}



.overlay-box {
  height: 100%;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition: transform 0.6s ease-in-out;
  width: 50%;
  z-index: 100;
}
.overlay {
  background-color: rgba(255, 255, 255, 0.25);
  height: 100%;
  left: -100%;
  position: relative;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  width: 200%;
}
.panel {
  width: 50%;
  height: 100%;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}
.over-left {
  transform: translateX(-20%);
}
.over-right {
  right: 0;
  transform: translateX(0);
}



.panel-active .login {
  transform: translateX(100%);
}
.panel-active .register {
  opacity: 1;
  transform: translateX(100%);
  z-index: 3;
}
.panel-active .overlay-box {
  transform: translateX(-100%);
}
.panel-active .overlay {
  transform: translateX(50%);
}
.panel-active .over-left {
  transform: translateX(0);
}
.panel-active .over-right {
  transform: translateX(20%);
}

